package com.haveajob.bill.service;

import com.haveajob.bill.entity.Bill;

import java.util.List;

public interface BillService {

    //查询保证金金额
    Bill selectBillDeposit(Bill bill);


    //查询当天缴纳保证金的用户数量
    int countTheDayOrder(String date);

    //缴纳保证金
    int insertSelectiveBill(Bill record,int userId);


    //退还保证金
    int backMoneyInsertBill(Bill record,int userId);

    //添加账单
    int addBill(Bill bill);

    //按日期间隔查询账单
    List<Bill> selectUserBills(int userId, String startDate,String endDate);

    //雇主支付订单
    int insertBill(Bill record);

    //获取工人订单收入的账单
    List<Bill> selectEmployeeOrderBills(int userId,String startDate,String endDate);

}
